package com.sinog.front.feign.biz;

import com.sinog.core.model.UserDTO;
import com.sinog.core.utilbean.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @desc 二次衔接
 * @author -
 * @date -
 */
@FeignClient("sinog2c-biz")
public interface SecXxxjService {

    /**
     * 根据罪犯编号获取跨省业务协调省的数据
     * @param priNum priNum
     * @return String
     */
    @RequestMapping("/azbj/ysfryxj/xjsb/getInterProvincialBusinessInfo")
    String getInterProvincialBusinessInfo(@RequestParam("priNum") String priNum);

    /**
     * 根据罪犯编号获取衔接信息表中的主键id
     * @param priNum priNum
     * @return String
     */
    @RequestMapping("/azbj/ysfryxj/getXjxxIdByPriNum")
    String getXjxxIdByPriNum(@RequestParam("priNum") String priNum);

    /**
     * 衔接失败上报
     * @param data data
     * @param user user
     * @return Result
     */
    @RequestMapping("/azbj/ysfryxj/xjreport/save")
    Result saveXjReport(@RequestParam("data") String data,@RequestBody UserDTO user);

    /**
     * 查看上报页面信息
     * @param priNum priNum
     * @return String
     */
    @RequestMapping("/azbj/ysfryxj/xjsb/getReportInfo")
    String getReportInfo(@RequestParam("priNum") String priNum);

    /**
     * 重新发起衔接页面信息
     * @param priNum priNum
     * @return String
     */
    @RequestMapping("/azbj/ysfryxj/xjsb/againxj")
    String getAgainXjPageInfo(@RequestParam("priNum") String priNum);
}